package team.kirohuji.repository.jpa.user;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import team.kirohuji.domain.user.User;

/**
 * 这个类用来对权限和菜单映射的管理
 * 
 * @author kirohuji
 * 
 */
@Repository
public interface UserRepository extends JpaRepository<User, Integer> {

	@Query(value = "select * from user where login_name=?1", nativeQuery = true)
	User queryByLoginName(String username);
	
}